home *** CD-ROM | disk | FTP | other *** search
- Path: Leiden.NL.net!sun4nl!xs4all!usenet
- From: jtv@xs4all.nl (Jeroen T. Vermeulen)
- Newsgroups: comp.sys.amiga.misc
- Subject: Re: Amigados - checking for a file
- Date: Sun, 7 Apr 96 02:21:00
- Organization: Leiden University, Mathematics & Computer Science, The Netherlands
- Message-ID: <19960407.7BDE4A0.2128@asd10-12.dial.xs4all.nl>
- References: <401.6670T240T431@nibelung.demon.co.uk>
- NNTP-Posting-Host: asd10-12.dial.xs4all.nl
- Mime-Version: 1.0
- Content-Type: text/plain; charset=iso-8859-1
- Content-Transfer-Encoding: 8bit
- X-NewsSoftware: GRn 2.1 Feb 19, 1994
-
-
- In article <401.6670T240T431@nibelung.demon.co.uk> barry.1@nibelung.demon.co.uk (Barry Shilliday) writes:
- > What would be the format to check the existence of a file in a script for dos?
- > I would have thought something like this:
- >
- > If EXISTS blah:filename
- > dowhatever
- > else
- > dothatinstead
- > endif
- > endif
- >
- > but this doesn't work.
-
- You are using the correct syntax for the If statement, but there's one "endif"
- too many.
-
-
- > Barry Shilliday -- <barry@nibelung.demon.co.uk>
- > A1200/030/50/8+2/170 - KS 3.1
- > Public PGP Key available on request.
-
- --
- ============================================================================
- # Jeroen T. Vermeulen \"How are we doing kid?"/ Yes, we use Amigas. #
- #--- jtv@xs4all.nl ---\"Oh, same as always."/-- ... --#
- #jvermeul@wi.leidenuniv.nl \ "That bad, huh?" / Got a problem with that? #
- Bill Gates' favourite game: Monopoly. Favourite sport: Monopolo.
-